package com.fastloan.mgt.application.repay.service;

import com.fastloan.common.model.CheckResult;
import com.fastloan.mgt.application.base.model.Application;
import com.fastloan.mgt.application.contract.model.ApplicationContract;
import com.fastloan.mgt.application.repay.model.ZyApplicationRepaymentPlan;
import com.fastloan.mgt.application.repay.model.vo.RepayExt;
import com.fastloan.mgt.product.basics.model.Product;
import com.kawins.base.BaseService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author gelon
 *         createTime 2017/11/10
 */
public interface ZyApplicationRepaymentPlanService extends BaseService<ZyApplicationRepaymentPlan> {


    List<RepayExt> queryByAppId(Map<String, Object> map);


    CheckResult repayment(String applicationId);

    /**
     * 生成还款计划
     */
    BigDecimal insertRepaymentPlan(Application tApplication, Product product, ApplicationContract applicationContract);


}
